<?php $this->fetch('public/head'); ?>
<!--tab标签-->
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this" lay-id="site">站点配置</li>
        <li lay-id="email">邮箱配置</li>
        <!-- <li lay-id="theme">系统配置</li> -->
        <!-- <li lay-id="theme">QQ登录配置</li> -->
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" action="<?php echo url('updateConfig') ?>" method="post">
                <input type="hidden" name="config_type" value="site_config" />
                <div class="layui-form-item">
                    <label class="layui-form-label">公司名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[site_title]" value="<?php echo $site_config['site_title'] ?>" required  lay-verify="required" placeholder="请输入公司名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">公司名称EN</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[site_title_en]" value="<?php echo $site_config['site_title_en'] ?>" required  lay-verify="required" placeholder="请输入公司名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SEO标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[seo_title]" value="<?php echo $site_config['seo_title'] ?>" placeholder="请输入SEO标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SEO关键字</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[seo_keyword]" value="<?php echo $site_config['seo_keyword'] ?>" placeholder="请输入SEO关键字" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">SEO描述</label>
                    <div class="layui-input-block">
                        <textarea name="site_config[seo_description]" placeholder="请输入SEO描述" class="layui-textarea"><?php echo $site_config['seo_description'] ?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[email]" value="<?php echo $site_config['email'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">职位邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[aemail]" value="<?php echo $site_config['aemail'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[addr]" value="<?php echo $site_config['addr'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系地址EN</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[addr_en]" value="<?php echo $site_config['addr_en'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">交通路线</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[line]" value="<?php echo $site_config['line'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">交通路线EN</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[line_en]" value="<?php echo $site_config['line_en'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮编</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[postnumber]" value="<?php echo $site_config['postnumber'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">传真</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[fax]" value="<?php echo $site_config['fax'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系电话</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[tell]" value="<?php echo $site_config['tell'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">百度坐标</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[map]" value="<?php echo $site_config['map'] ?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">版权信息</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[site_copyright]" value="<?php echo $site_config['site_copyright'] ?>" placeholder="请输入版权信息" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">ICP备案号</label>
                    <div class="layui-input-block">
                        <input type="text" name="site_config[site_icp]" value="<?php echo $site_config['site_icp'] ?>" placeholder="请输入ICP备案号" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <!-- <div class="layui-form-item">
                    <label class="layui-form-label">统计代码</label>
                    <div class="layui-input-block">
                        <textarea name="site_config[site_tongji]" placeholder="请输入统计代码" class="layui-textarea"><?php echo $site_config['site_tongji'] ?></textarea>
                    </div>
                </div> -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-form layui-tab-item">
            <div class="layui-form-item">
                <form class="layui-form form-container" action="<?php echo url('updateConfig') ?>" method="post">
                    <input type="hidden" name="config_type" value="email_config" />
                    <div class="layui-form-item">
                        <label class="layui-form-label">发件人名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="email_config[sender]" value="<?php echo $email_config['sender'] ?>" placeholder="请输入发件人" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">SMTP服务器</label>
                        <div class="layui-input-block">
                            <input type="text" name="email_config[smtp]" value="<?php echo $email_config['smtp'] ?>" placeholder="SMTP服务器" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发件箱账号</label>
                        <div class="layui-input-block">
                            <input type="text" name="email_config[loginname]" value="<?php echo $email_config['loginname'] ?>" placeholder="邮箱账号" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发件箱密码</label>
                        <div class="layui-input-block">
                            <input type="text" name="email_config[password]" value="<?php echo $email_config['password'] ?>" placeholder="邮箱密码" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">收件箱账号</label>
                        <div class="layui-input-block">
                            <input type="text" name="email_config[address]" value="<?php echo $email_config['address'] ?>" placeholder="请输入邮箱地址" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <!-- <div class="layui-form layui-tab-item">
            <form class="layui-form form-container" action="<?php echo url('updateConfig') ?>" method="post">
                <input type="hidden" name="config_type" value="system_config" />
                <input type="hidden" name="system_config[app_debug]" value="false" />
                <input type="hidden" name="system_config[app_trace]" value="false" />
                <div class="layui-form-item">
                    <label class="layui-form-label">调试模式</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="system_config[app_debug]" <?php if($system_config['app_debug']=='true'){echo 'checked';} ?> value="true" lay-skin="switch" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">应用Trace</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="system_config[app_trace]" <?php if($system_config['app_trace']=='true'){echo 'checked';} ?> value="true" lay-skin="switch" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div> -->
        <!-- <div class="layui-form layui-tab-item">
            <form class="layui-form form-container" action="<?php echo url('updateConfig') ?>" method="post">
                <input type="hidden" name="config_type" value="qq_config" />
                <div class="layui-form-item">
                    <label class="layui-form-label">APP_ID</label>
                    <div class="layui-input-block">
                        <input type="text" name="qq_config[app_id]" value="{$qq_config.app_id|default=''}" required  lay-verify="required" placeholder="QQ互联APP_ID" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">APP_KEY</label>
                    <div class="layui-input-block">
                        <input type="text" name="qq_config[app_key]" value="{$qq_config.app_key|default=''}" placeholder="请输入APP_KEY" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">回调地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="qq_config[call_back]" value="{$qq_config.call_back|default=''}" placeholder="请输入回调地址" autocomplete="off" class="layui-input">
                    </div>
                </div>
        
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div> -->
    </div>
</div>

<?php $this->fetch('public/script'); ?>